package com.zyb.product.dao;


import com.zyb.commons.dao.BaseDao;
import com.zyb.commons.page.PageResult;
import com.zyb.product.dto.AttrGroupDTO;
import com.zyb.product.entity.AttrGroupEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 属性分组
 *
 * @author 赵毅博 593163583@qq.com
 * @since 1.0.0 2022-07-15
 */
@Mapper
public interface AttrGroupDao extends BaseDao<AttrGroupEntity> {

    Integer countAll(@Param("catId")Long catId,@Param("attrGroupId") Long attrGroupId);
    List<AttrGroupDTO> queryAllLimit(@Param("catId") Long catId,@Param("attrGroupId") Long attrGroupId, @Param("pageResult") PageResult<AttrGroupDTO> pageResult);
}